.class public Lcom/hierynomus/ntlm/messages/b;
.super Lcom/hierynomus/ntlm/messages/d;
.source "NtlmChallenge.java"


# instance fields
.field private a:I

.field private b:I

.field private c:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;",
            ">;"
        }
    .end annotation
.end field

.field private d:[B

.field private e:I

.field private f:I

.field private g:Ljava/lang/String;

.field private h:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Lcom/hierynomus/ntlm/messages/AvId;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private i:[B


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/hierynomus/ntlm/messages/d;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->h:Ljava/util/Map;

    return-void
.end method

.method private b(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 1
    iget v0, p0, Lcom/hierynomus/ntlm/messages/b;->e:I

    if-lez v0, :cond_0

    .line 2
    iget v0, p0, Lcom/hierynomus/ntlm/messages/b;->f:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->f(I)V

    .line 3
    iget v0, p0, Lcom/hierynomus/ntlm/messages/b;->e:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->e(I)[B

    move-result-object v0

    iput-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->i:[B

    .line 4
    iget v0, p0, Lcom/hierynomus/ntlm/messages/b;->f:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->f(I)V

    .line 5
    :goto_0
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g()I

    move-result v0

    int-to-long v0, v0

    .line 6
    const-class v2, Lcom/hierynomus/ntlm/messages/AvId;

    const/4 v3, 0x0

    invoke-static {v0, v1, v2, v3}, Les/ed0$a;->a(JLjava/lang/Class;Les/ed0;)Les/ed0;

    move-result-object v0

    check-cast v0, Lcom/hierynomus/ntlm/messages/AvId;

    .line 7
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g()I

    move-result v1

    .line 8
    sget-object v2, Lcom/hierynomus/ntlm/messages/b$a;->a:[I

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v3

    aget v2, v2, v3

    packed-switch v2, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    .line 9
    :pswitch_1
    iget-object v1, p0, Lcom/hierynomus/ntlm/messages/b;->h:Ljava/util/Map;

    invoke-static {p1}, Lcom/hierynomus/msdtyp/a;->a(Lcom/hierynomus/protocol/commons/buffer/Buffer;)Ljava/util/Date;

    move-result-object v2

    invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 10
    :pswitch_2
    iget-object v2, p0, Lcom/hierynomus/ntlm/messages/b;->h:Ljava/util/Map;

    const-string v3, "UTF-16LE"

    invoke-static {v3}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v3

    div-int/lit8 v1, v1, 0x2

    invoke-virtual {p1, v3, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(Ljava/nio/charset/Charset;I)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_0
    :pswitch_3
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_3
        :pswitch_2
        :pswitch_2
        :pswitch_2
        :pswitch_2
        :pswitch_2
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method private c(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->c:Ljava/util/EnumSet;

    sget-object v1, Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;->NTLMSSP_NEGOTIATE_TARGET_INFO:Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;

    invoke-virtual {v0, v1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g()I

    move-result v0

    iput v0, p0, Lcom/hierynomus/ntlm/messages/b;->e:I

    const/4 v0, 0x2

    .line 3
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 4
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->j()I

    move-result p1

    iput p1, p0, Lcom/hierynomus/ntlm/messages/b;->f:I

    goto :goto_0

    :cond_0
    const/16 v0, 0x8

    .line 5
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    :goto_0
    return-void
.end method

.method private d(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 1
    iget v0, p0, Lcom/hierynomus/ntlm/messages/b;->a:I

    if-lez v0, :cond_0

    .line 2
    iget v0, p0, Lcom/hierynomus/ntlm/messages/b;->b:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->f(I)V

    const-string v0, "UTF-16LE"

    .line 3
    invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v0

    iget v1, p0, Lcom/hierynomus/ntlm/messages/b;->a:I

    div-int/lit8 v1, v1, 0x2

    invoke-virtual {p1, v0, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(Ljava/nio/charset/Charset;I)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/hierynomus/ntlm/messages/b;->g:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method private e(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g()I

    move-result v0

    iput v0, p0, Lcom/hierynomus/ntlm/messages/b;->a:I

    const/4 v0, 0x2

    .line 2
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 3
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->j()I

    move-result p1

    iput p1, p0, Lcom/hierynomus/ntlm/messages/b;->b:I

    return-void
.end method

.method private f(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->c:Ljava/util/EnumSet;

    sget-object v1, Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;->NTLMSSP_NEGOTIATE_VERSION:Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;

    invoke-virtual {v0, v1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    move-result v0

    const/16 v1, 0x8

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    :goto_0
    return-void
.end method


# virtual methods
.method public a(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)Lcom/hierynomus/ntlm/messages/d;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;
        }
    .end annotation

    const-string v0, "UTF-8"

    .line 1
    invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {p1, v0, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(Ljava/nio/charset/Charset;I)Ljava/lang/String;

    .line 2
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->i()J

    .line 3
    invoke-direct {p0, p1}, Lcom/hierynomus/ntlm/messages/b;->e(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V

    .line 4
    invoke-virtual {p1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->i()J

    move-result-wide v2

    const-class v0, Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;

    invoke-static {v2, v3, v0}, Les/ed0$a;->a(JLjava/lang/Class;)Ljava/util/EnumSet;

    move-result-object v0

    iput-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->c:Ljava/util/EnumSet;

    .line 5
    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->e(I)[B

    move-result-object v0

    iput-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->d:[B

    .line 6
    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 7
    invoke-direct {p0, p1}, Lcom/hierynomus/ntlm/messages/b;->c(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V

    .line 8
    invoke-direct {p0, p1}, Lcom/hierynomus/ntlm/messages/b;->f(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V

    .line 9
    invoke-direct {p0, p1}, Lcom/hierynomus/ntlm/messages/b;->d(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V

    .line 10
    invoke-direct {p0, p1}, Lcom/hierynomus/ntlm/messages/b;->b(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)V

    return-object p0
.end method

.method public a()Ljava/util/EnumSet;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/ntlm/messages/NtlmNegotiateFlag;",
            ">;"
        }
    .end annotation

    .line 11
    iget-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->c:Ljava/util/EnumSet;

    return-object v0
.end method

.method public b()[B
    .locals 1

    .line 11
    iget-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->d:[B

    return-object v0
.end method

.method public c()[B
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/hierynomus/ntlm/messages/b;->i:[B

    return-object v0
.end method
